package com.company.common.core.mail;

public class TestSendMail
{
  public static void main(String[] args)
  {
    MailSenderInfo mailInfo = new MailSenderInfo();
    mailInfo.setMailServerHost("smtp.163.com");
    mailInfo.setMailServerPort("25");
    mailInfo.setValidate(true);
    mailInfo.setUserName("xushuo_123@163.com");
    mailInfo.setPassword("1982115stone");
    mailInfo.setFromAddress("xushuo_123@163.com");
    mailInfo.setToAddress("570997623@qq.com");
    mailInfo.setSubject("test标题");
    mailInfo.setContent("设置邮箱内容");

    SimpleMailSender sms = new SimpleMailSender();

    sms.sendHtmlMail(mailInfo);
  }
}